<template>
  <div>
    <div class="ql-editor">
      <div class="subtitle-1 mb-2">{{ detail.noticeTitle }}</div>
      <div v-html="content"></div>
    </div>
  </div>
</template>
<script>
import { getNoticeDetaill } from "@/api/notice";
export default {
  name: "TichTextPage",
  props: {
    id: {
      type: String,
      default: null,
    },
  },
  data() {
    return {
      detail: null,
    };
  },
  computed: {
    content() {
      if (this.detail) {
        return this.detail.noticeContent;
      }
      return "";
    },
  },
  mounted() {
    getNoticeDetaill(this.id).then((res) => {
      console.log(res.data);
      this.detail = res.data;
    });
  },
};
</script>
<style scoped></style>
